/**************************************************************
* Copyright (C) 2022 www.eipflow.com 孙泽伟版权所有(盗版必究)
*
* 作者: 孙泽伟(QQ 1039318332)
* 创建时间: 2018/11/9 9:21:04
* 文件名: 
* 描述: 
* 
* 修改历史
* 修改人：
* 时间：
* 修改说明：
*
**************************************************************/
namespace EIP.System.Logic
{
    /// <summary>
    /// 每个列表用户自定义顺序宽度冻结
    /// </summary>
    public interface ISystemZeroCodeGridCustomLogic : IAsyncLogic<SystemZeroCodeGridCustom>
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="paging"></param>
        [EasyCachingAble(CacheKeyPrefix = "ISystemZeroCodeGridCustom_Cache")]
        Task<OperateStatus<PagedResults<SystemZeroCodeGridCustomFindOutput>>> Find(SystemZeroCodeGridCustomFindInput paging);

        /// <summary>
        /// 根据Id获取
        /// </summary>
        /// <param name="paging"></param>
        [EasyCachingAble(CacheKeyPrefix = "ISystemZeroCodeGridCustom_Cache")]
        Task<OperateStatus<SystemZeroCodeGridCustom>> FindById(IdInput input);

        /// <summary>
        /// 根据Key获取
        /// </summary>
        /// <param name="paging"></param>
        [EasyCachingAble(CacheKeyPrefix = "ISystemZeroCodeGridCustom_Cache")]
        Task<OperateStatus<SystemZeroCodeGridCustomFindByKeyOutput>> FindByKey(IdInput<string> input);

        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="input">实体</param>
        /// <returns></returns>
        [EasyCachingEvict(IsAll = true, CacheKeyPrefix = "ISystemZeroCodeGridCustom_Cache,ISystemWorkSheetLogic_Cache")]
        Task<OperateStatus> Save(SystemZeroCodeGridCustom input);

        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        [EasyCachingEvict(IsAll = true, CacheKeyPrefix = "ISystemZeroCodeGridCustom_Cache")]
        Task<OperateStatus> Delete(IdInput<string> input);

    }
}